package main

import (
	"golang-learning/http/qiyeweixin"
	"log"
)

func main() {
	/*获取accessToken*/
	accessToken, err := qiyeweixin.GetAccessToken()
	if err != nil {
		log.Fatal(err)
		return
	}
	log.Println("accessToken:", accessToken)

	content := "要推送的消息\r\n"
	content = content + "1234567890\r\n"
	content = content + "1234567890"
	err = qiyeweixin.SendMessage(content, accessToken)

	if err != nil {
		log.Fatal(err)
		return
	}

}
